import { Injectable } from '@angular/core';

import {FrameContext,BindingData,Repository} from '@farris/devkit';

@Injectable()
export class SbssGzjlDetailFrmControllerService {
  constructor(
        private frameContext:FrameContext
  ) {}

  /**
   * 是否停机绑定字段值变化后事件
   * @remarks 
   * @returns 
   */
  isJhtjFieldValueChanged(): any {
    let isTt = this.frameContext.bindingData.getValue(['isJhtj'])
    if(!isTt){
      this.frameContext.bindingData.setValue(['tjts'],0,true,true)
      this.frameContext.bindingData.setValue(['isJh'],false,true,true)
    }
  }
}
